﻿namespace StyleMVVM.DependencyInjection.Conditions
{
	public sealed class SimpleExportCondition : IExportCondition
	{
		private ExportConditionDelegate condition;

		public SimpleExportCondition(ExportConditionDelegate condition)
		{
			this.condition = condition;
		}

		public bool ConditionMeet(IDependencyInjectionContainer container,
		                          IInjectionContext injectionContext,
		                          IExportStrategy exportStrategy)
		{
			return condition(container, injectionContext, exportStrategy);
		}
	}
}